Method for decoding variable length codes and corresponding receiver

ABSTRACT

The present invention relates to a method for decoding Variable Length Codes used to encode data having a predefined type, preferably image or video data, said encoded data consisting in a sequence of codewords belonging to a predefined set of codewords.  
     According to the present invention, the method comprises the steps of:  
     building at least one partial decoded codeword sequence comprising at least two decoded codewords;  
     checking if said partial decoded codeword sequence fulfils at least one property intrinsic to said predefined type of data.

[0001] The invention is based on a priority application EP 03 290 826.1 which is hereby incorporated by reference.

BACKGROUND OF THE INVENTION

[0002] The present invention relates to a method for decoding Variable Length Codes.

[0003] Usual image resp. video compression standards contain spatial resp. spatial and temporal compression. Temporal compression consists in that only the first image or one image at predefined time intervals is entirely encoded, for subsequent images only the difference to the entirely encoded image is encoded. Spatial compression usually consists in that the image is firstly applied a transform compression technology such as discrete cosine transform or wavelets and secondly applied an entropy compression technology such as Huffmann code, arithmetic code RVLC or U-VLC all belonging to the family of Variable Length Codes. The step of entropy compression will be the framework for the present invention.

[0004] A Variable Length Code comprises a plurality of codewords which are transmitted on a transmission channel to a receiver. At receiver side, the codeword dictionary is known, and the decoder separate the codewords out of the bit stream to recover originally transmitted data. A drawback of this usual decoding method is that transmission errors can propagate spatially until the decoder detects that it cannot find any codeword matching the received sequence and until the next synchronization sequence is found.

[0005] Actually, Variable Length Codes decoding method require a reliable transmission channel to be efficient. In mobile communication networks, bit errors due to non-reliable transmission medium can result in a loss of synchronization when decoding codewords. Moreover, due to real time constraints, it is not possible to protect the transmitted data with an error correction mechanism (e.g. radio link protocol) which triggers the repetition of erroneous data frames.

[0006] Known in the art are decoding methods for Variable Length Codes based on the projection of the received sequence on the codeword dictionary. Such methods are described in following articles:

[0007] On Variable Length Codes for Iterative Source-Channel Decoding, R. Bauer, J. Hagenauer, Proceedings of IEEE Data Compression Conference, 2001, page(s): 273-282.

[0008] Iterative Source-Channel Decoding based on a Trellis representation for Variable Length Codes, R. Bauer, J. Hagenauer, ISIT 2000, June 25-30, Sorrento, Italy.

[0009] These methods exploit the relationship between bits inside the codeword. However, the relationship is not strong enough to recover efficiently errors at the receiver. Moreover, the decoded sequences may lead to not meaningful codeword sequences even if the decoding of each codeword taken individually seems correct.

[0010] A particular object of the present invention is to provide an improved method for decoding Variable Length Codes especially in communication networks having a non-reliable transmission medium.

[0011] Another object of the invention is to provide a receiver for performing this method.

SUMMARY OF THE INVENTION

[0012] These objects are achieved by a method for decoding Variable Length Codes used to encode data having a predefined type, preferably image or video data, said encoded data consisting in a sequence of codewords belonging to a predefined set of codewords, said method comprising the steps of:

[0013] building at least one partial decoded codeword sequence comprising at least two decoded codewords;

[0014] checking if said partial decoded codeword sequence fulfils at least one property intrinsic to said predefined type of data.

[0015] These objects are further archieved by a receiver for receiving data encoded with a Variable Length Code, said receiver comprising:

[0016] means for building at least one partial decoded codeword sequence comprising at least two decoded codewords;

[0017] means for checking if said partial decoded codeword sequence fulfils at least one property intrinsic to said predefined type of data.

[0018] According to the present invention, the method for decoding Variable Length Codes comprises a step of taking into account constraints on the type of data which are encoded additionally to constraints intrinsic to each codeword.

[0019] In a first preferred embodiment of the present invention, the method consists in computing iteratively partial decoded codeword sequences by adding at each iteration an additional plausible codeword. For each partial decoded codeword sequence, a metric giving an information on the meaningfulness of a sequence of data of the predefined type is computed. Among all partial decoded codeword sequences having the same number of bits, only the partial decoded codeword sequence which optimize the metric (herein called survivor) is kept for the next iteration.

[0020] Preferably, the metric consists in a Viterbi metric.

[0021] Preferably, a likelihood is computed for each bit of the survivor depending on the partial decoded codeword sequences having the same bit length as the survivor. This likelihood is used to generate soft outputs at the decoder output.

[0022] In further preferred embodiments of the present invention, properties intrinsic to image or video data are used to check the correctness of partial decoded codeword sequences.

[0023] The method according to the present invention presents the advantage to provide an increased robustness to non-reliable transmission channel errors without any bit rate increased due to redundancy and without changes at the encoding side.

[0024] The method according to the present invention can be used for all type of source decoding (hard input/hard output, hard input/soft output, soft input/hard output, soft input/soft output).

[0025] The method according to the present invention has the advantage to present a computation complexity equivalent to other prior art decoding algorithms while providing better results in term of erroneous decoded codeword sequences.

[0026] Further advantageous features of the invention are defined in the dependent claims.

BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Other characteristics and advantages of the invention will appear on reading the following description of a preferred embodiment given by way of non-limiting illustrations, and from the accompanying drawings, in which:

[0028]FIG. 1a shows an illustration of a first embodiment of the method according to the present invention;

[0029]FIG. 1b details a simplified example of the method according to the present invention;

[0030]FIG. 2 shows the hierarchical organization of video bit stream used in a second embodiment of the method according to the present invention to determine data type specific properties;

[0031]FIG. 3 shows a receiver according to the present invention;

[0032]FIG. 4 represents simulation results obtained using the second embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

[0033]FIG. 1a shows an illustration of a first embodiment of the method according to the present invention.

[0034] This first embodiment of the method according to the present invention consists in iteratively building lists of plausible decoded partial codeword sequences and selecting for further processing some of the partial decoded codeword sequences according to property intrinsic to the predefined type of data. This first embodiment of the method according to the present invention comprises following steps.

[0035] Step 11 consists in building a list comprising all plausible partial decoded codeword sequences comprising one codeword belonging to the dictionary and corresponding to the received data bits. The codewords are generated according to usual Variable Length Code decoding algorithms (e.g. H261, H263, H26L, H264, JPEG, MPEG . . . or the ones cited in the paragraph prior art of the present description) upon reception of encoded data from the transmission medium. The present invention does not address the way the different codewords are obtained, it will then be clear for persons skilled in the art that any prior art method can be used for this purpose.

[0036] Step 12 consists in calculating a metric for the different plausible partial decoded codeword sequences. The metric should give an indication on the meaningfulness of the decoded sequence according to properties intrinsic to the type of transmitted data. Preferably, the metric is a Viterbi metric which associates an Euclidean distance between the received data sequence and the transmitted data sequence. The Viterbi metric gives an indication on the probability that a data sequence having a predefined bit length has been emitted, the received data sequence having the same bit length being known. It will be clear for those skilled in the art that other metrics reflecting the meaningfulness of a data sequence can be used at the place of the Viterbi metric without departing from the scope of the present invention.

[0037] Step 13 consists in selecting for further processing among all partial decoded codeword sequences having the same number of bits the one which optimizes the predefined metric. The selected partial decoded codeword sequence will be called “survivor” in the following.

[0038] Step 14 consists in starting the next iteration by adding one additional codeword to the partial decoded codeword sequences obtained at step 13 and repeating steps 12, 13, 14 until a data block having a predefined bit length is obtained (step 15).

[0039]FIG. 1b details the steps listed above for a simplified example. For example, the received data sequence is 0  1  0  1  1  0  1  1  0  0.

[0040] It is assumed that this sequence correspond to one data block of bit length equal to 10 bits.

[0041] The dictionary comprises following codewords, code #1: 0 1 0 code #2: 1 1 code #3: 0 0 code #4: 0 1 code #5: 0 1 1 code #6: 0 1 1 0 code #1: 1 0  0.

[0042] The first list of plausible partial decoded codeword sequences comprising only one codeword comprises two entries code #1 and code #4. These two codeword have different bit lengths 3 bits resp. 2 bits. No selection is made according to step 12.

[0043] The list of plaussible partial decoded codewords sequences comprising two codewords comprises also two entries:

[0044] Code #1 code #2

[0045] Code #4 code #5

[0046] Since these two partial decoded codeword sequences have the same number of bits (5 bits), a selection of one of these codeword has to be performed according preferably to the Viterbi metric. Only the partial decoded codeword sequence optimizing the metric will be kept for further processing. Assumed the partial decoded codeword sequence optimizing the metric is the sequence: code #4 code #5. At next iteration, the list of plausible partial decoded codeword sequences comprising three codewords comprises three entries

[0047] Code #4 code #5 code #4

[0048] Code #4 code #5 code #5

[0049] Code #4 code #5 code #6.

[0050] None of these sequences have the same number of bits, no selection is performed

[0051] At next iteration, the list of plausible partial decoded codeword sequences comprising four codewords comprises

[0052] Code #4 code #5 code #4 code #7

[0053] Code #4 code #5 code #5 code #3

[0054] Code #4 code #5 code #6 code #X would be a codeword sequence comprising at least 11 bits and is as a consequence no more a plausible sequence (in this example a data block comprises exactly 10 bits). No codeword sequence comprising 10 bits can be obtained which starts with code #4 code #5 code #6.

[0055] Since partial decoded codeword sequence code #4 code #5 code #4 code #7 and partial decoded codeword sequence code #4 code #5 code #5 code #3 comprises the same number of bits, the metric is used to select the partial decoded codeword sequence which optimize the viterbi metric. Since the bit length of the partial decoded codeword sequence equals the bit length of a data block, the decoding of this data block is finished.

[0056] In a preferred embodiment of the present invention, additional partial decoded codeword sequences are kept for further processing at each iteration. This presents the advantage to provide a better correct decoding rate with an acceptable increase of the processing load. These additional partial decoded codeword sequences kept for further processing are chosen as described below.

[0057] For each survivor of bit length L, an information related to the number of pixels coded in this survivor is computed. This information is preferably, the sum of the run parameters for each codewords contained in the survivor.

[0058] Then, for all other partial decoded codeword sequences having the same bit length as the survivor of bit length L, the information related to the number of pixels coded in the partial decoded sequence (e.g. the sum of the “run” parameters for the codewords in the partial decoded codeword sequence) is also computed and noted R.

[0059] All partial decoded codeword sequences having an information related to the number of pixels coded in the partial decoded codeword sequence lower than R are kept for the next iteration.

[0060] Alternatively, among the partial decoded codeword sequences having an identical information related to the number of pixel coded, only the partial decoded codeword sequence which optimises a likelihood as defined below is kept for further processing.

[0061] Preferably, the method comprises a step 13′ of computing a likelihood for each bits of the survivors at each iteration. The likelihood is preferably a function of the metrics computed for the partial decoded codeword sequences having the same bit length as the survivor. This likelihood is used to generate soft outputs at the decoder output. It will be understood by those skilled in the art that this step is optional especially if hard outputs are generated at the decoder output.

[0062] The likelihood can preferably be calculated the following way:

[0063] First, a quantity called “marginal” associated to the “survivor” is computed for each bit. This quantity takes into account all partial decoded codeword sequences which have to be discarded and which have the same bit length as the survivor. ${{marginal}\left( {X_{i} = 1} \right)} = {\sum\limits_{{S_{p} \in \quad {{Setof}{{\{{{{candidates}\quad {to}\quad {be}\quad {discarded}}\quad,{survivor}}\}}/X_{i}}}} = 1}{B_{i,1}\left( {S_{p}/Y_{p}} \right)}}$ ${{marginal}\left( {X_{i} = 0} \right)} = {\sum\limits_{{S_{p} \in \quad {{Setof}{{\{{{{candidates}\quad {to}\quad {be}\quad {discarded}}\quad,{survivor}}\}}/X_{i}}}} = 1}{B_{i,0}\left( {S_{p}/Y_{p}} \right)}}$

[0064] with

[0065] X_(i) the i-e bit of the sequence to be decoded

[0066] S_(p) the plausible partial decoded codeword sequence of the k-e list L_(k) before discarding all the candidates which are not the survivor.

[0067] Y_(p) the received data sequence corresponding to the sequence S_(p).

[0068] By construction, S_(p) is created with a sequence from the previous iteration list L_(k−1): S′_(p) and a new added codeword V_(new): S_(p)=S′_(p)V_(new) L is the length in bits of S_(p) and L′ is the length in bits of S′_(p).

[0069] then ∀iε[1,L′]:

B _(i,x) _(i) (S _(p) /Y _(p))=old−marginal-of-S′ _(p)(X _(i))*P(V _(new) /Y _(vlc))

[0070] Y_(vlc) is the received sequence corresponding to this codeword.

∀iε[L′+1,L]

[0071] if the corresponding bit of S_(p) is equal to X_(i)=x with xε{0,1}, then:

B _(i, X) _(i) _(=x)(S _(p) /Y _(p))=[old−marginal-of-S′ _(p)(X _(L′)=0)+old−marginal-of-S′ _(p)(X _(L′)=1)]*P(V _(new) /Y _(vlc))

[0072] if the corresponding bit of S_(p) is equal to X_(i)≠x with xε{0,1}, then:

B _(i,X) _(i) _(=x)(S _(p) /Y _(p))=0

[0073] At the end of the iteration process, the “marginal” quantity associated to the last survivor is the sum of all the discarded complete plausible sequence and the former associate “marginal” quantity of the survivor itself.

[0074] The “marginal” is a quantity which is used to get a “soft-output” at the decoder output.

[0075] The “soft-output” is then preferably computed for each bit the following way. $\begin{matrix} {{{L\left( X_{i} \right)} = {\frac{P\left( {X_{i} = 1} \right)}{P\left( {X_{i} = 0} \right)} = \frac{\begin{matrix} {\sum\quad} \\ \begin{matrix} {{{over}\quad {all}\quad {the}\quad {sequences}}\quad} \\ {\quad {{in}\quad {the}\quad {list}\quad F}} \end{matrix} \end{matrix}{{marginal}\left( {X_{i} = 1} \right)}}{\begin{matrix} {\sum\quad} \\ \begin{matrix} {{{over}\quad {all}\quad {the}\quad {sequences}}\quad} \\ {\quad {{in}\quad {the}\quad {list}\quad F}} \end{matrix} \end{matrix}{{marginal}\left( {X_{i} = 0} \right)}}}}\quad} \\ {{{P\left( {X_{i} = 1} \right)} = \frac{\begin{matrix} {\sum\quad} \\ \begin{matrix} {{{over}\quad {all}\quad {the}\quad {sequences}}\quad} \\ {\quad {{in}\quad {the}\quad {list}\quad F}} \end{matrix} \end{matrix}{{marginal}\left( {X_{i} = 1} \right)}}{\begin{matrix} {{\begin{matrix} {\sum\quad} \\ \begin{matrix} {{{over}\quad {all}}\quad} \\ {{the}\quad {sequences}} \\ {\quad {{in}\quad {the}\quad {list}\quad F}} \end{matrix} \end{matrix}{{marginal}\left( {X_{i} = 1} \right)}} +} \\ {\begin{matrix} {\sum\quad} \\ \begin{matrix} {{{over}\quad {all}}\quad} \\ {{the}\quad {sequences}} \\ {\quad {{in}\quad {the}\quad {list}\quad F}} \end{matrix} \end{matrix}{{marginal}\left( {X_{i} = 0} \right)}} \end{matrix}}}\quad} \\ {{{P\left( {X_{i} = 0} \right)} = \frac{\begin{matrix} {\sum\quad} \\ \begin{matrix} {{{over}\quad {all}\quad {the}\quad {sequences}}\quad} \\ {\quad {{in}\quad {the}\quad {list}\quad F}} \end{matrix} \end{matrix}{{marginal}\left( {X_{i} = 0} \right)}}{\begin{matrix} {{\begin{matrix} {\sum\quad} \\ \begin{matrix} {{{over}\quad {all}}\quad} \\ {{the}\quad {sequences}} \\ {\quad {{in}\quad {the}\quad {list}\quad F}} \end{matrix} \end{matrix}{{marginal}\left( {X_{i} = 1} \right)}} +} \\ {\begin{matrix} {\sum\quad} \\ \begin{matrix} {{{over}\quad {all}}\quad} \\ {{the}\quad {sequences}} \\ {\quad {{in}\quad {the}\quad {list}\quad F}} \end{matrix} \end{matrix}{{marginal}\left( {X_{i} = 0} \right)}} \end{matrix}}}\quad} \end{matrix}$

[0076] In further preferred embodiments of the present invention Log-” and “Sub-log” approximations can be used to generate “soft outputs” at the decoder output.

[0077] “Sub-log” is an sub-optimum algorithm of this algorithm with the approximation log(e^(a)+e^(b))=max(a,b) to be used in Viterbi algorithm.

[0078] “Log-” is another sub-optimum algorithm of this algorithm with the approximation in the Viterbi algorithm:

log(e ^(a) +e ^(b))=max(a,b)+log(1+e ^(−|a−b|))

[0079] where log(1+e^(−|a−b|)) is given by a table.

[0080] For these two sub-optimum algorithms, multiplication operations become addition operations and no exponential function values computation have to be performed (if the errors model is AGWN).

[0081]FIG. 2 shows the hierarchical organization of video bit stream used in a second embodiment of the method according to the present invention to determine data type specific properties. For each picture, the image or video data comprise a picture header 21 followed by groups of blocks 22 (GOB), each group of blocks 22 comprises a GOB header 23 and macro blocks 24 (MB), each MB 24 comprises a MB header 25 and data blocks 26. A data block 26 contains a predefined number of pixels N. (e.g. 64 pixels in the case of the H.263).

[0082] Each codeword generated by the encoding of a data block 26 is represented by a triplet (run, level, last) as described in H263 standard or by a couple (run, level) together with an End-of-Block indicator as described in the H.26L standard. Other prior art encoding mechanism may be used without departing from the scope of the present invention (e.g. MPEG, JPEG, H261, H264 . . . ). The parameter run represents the number of pixels encoded in a codeword.

[0083] According to the invention, partial decoded codeword sequences representing a data block should verify following property: ${{\sum\limits_{{codewords}\quad \in \quad {{partial}\quad {sequence}}}{run}_{codeword}} + 1} \leq N$

[0084] wherein the parameter “run as defined in “run-length” compression methods is associated to each codeword. The parameter “run” is related to the number of pixels coded in a codeword Indeed, a partial decoded codeword sequence for which the above mentioned sum would be greater than the number of pixel per data block would be an erroneous partial decoded codeword sequence.

[0085] This property intrinsic to the type of data can be used alone in that a sequence of decoded codeword can be rejected if it does not fulfil the property. In this case, another decoding algorithm (e.g. a more efficient one) should be used to decode the received sequence.

[0086] Alternatively, this property can be used in combination with the decoding method proposed in the first embodiment of the present invention. In this case, each partial decoded codeword sequence is checked against this property and partial decoded codeword sequences which do not fulfil the property are discarded. This presents the advantage to further reduce the processing load in the decoding method according to the first embodiment of the present invention.

[0087] In a further embodiment of the present invention, the field last from the triplet (run, level, last) according to H263 standard, respectively the End-of-Block indicator according to H.26L standard are used to define a property intrinsic to the type of data. Indeed, the field “last” or “end of block” is only set to 1 if the corresponding codeword is the last codeword of the data block. In all other cases (i.e. the decoded codeword is not the last of the data block), the field “last” or “end of block” must be 0.

[0088] This property intrinsic to the type of data can be used alone in that a sequence of decoded codeword can be rejected if it does not fulfil the property. In this case another decoding of the received sequence should be performed.

[0089] Alternatively, this property can be used in combination with the decoding method proposed in the first embodiment of the present invention. In this case, each partial decoded codeword sequence is checked against this property and partial decoded codeword sequence which do not fulfil the property are discarded. This presents the advantage to further reduce the processing load in the decoding method according to the first embodiment of the present invention.

[0090] Preferably the method according to the present invention in its different embodiment is used for the transmission of image or video data over wireless communication network having per se an unreliable transmission medium.

[0091]FIG. 3 shows a receiver according to the present invention.

[0092] The receiver comprises a decoder 30 for decoding Variable Length Codes. Decoder 30 comprises a module 31 for decoding Variable Length Codes as known in prior art and a module 32 for checking if decoded sequences fulfil a predefined property intrinsic to the type of encoded data.

[0093] Module 31 generates codewords according to usual Variable Length Code decoding algorithms (e.g. H261, H263, H26L, H264, JPEG, MPEG . . . ) upon reception of encoded data from the transmission medium. Module 31 forward each new decoded codeword to module 32. Module 32 comprises means 321 for building partial decoded codeword sequences comprises at least two decoded codewords, means 322 for checking if the partial decoded codeword sequences fulfils one or more properties intrinsic to the type of data to decode.

[0094] In a preferred embodiment, means 322 checks if the partial decoded codeword sequence optimize a metric calculated for data sequences having a predefined bit length. This metric is preferably the Viterbi metric. Means 322 then only keep for further processing the partial decoded codeword sequence which optimize the Viterbi metric among the partial codeword sequences having the same bit length.

[0095] In another preferred embodiment means 322 checks is the partial decoded codeword sequence fulfills following property ${{\sum\limits_{{codewords}\quad \in \quad {{partial}\quad {sequence}}}{run}_{codeword}} + 1} \leq N$

[0096] In a further preferred embodiment of the present invention means 322 checks if the partial decoded codeword sequence fulfills following property:

last_(last codeword of data sequence)≠1.

[0097] The receiver according to the present invention can be a mobile terminal. Alternatively, the receiver can be a part of the base station subsystem in the case that the encoded data are decoded at the base station subsystem.

[0098]FIG. 4 represents simulation results obtained using the second embodiment of the present invention. A set of image blocks from video sequences have been used for simulation. This set of image blocks have been transmitted over a gaussian (AGWN) channel and have then been decoded according to a prior art decoding method (curve 41) and with the method according to the present invention (curve 42). The curves 41, 42 show the image block error rate (number of image blocks erroneously decoded over total number of transmitted image blocks).

[0099] A gain of 1 to 2 dB is obtained with the method according to the present invention. The above presented simulation results have been obtained when considering the “data” field of the video stream. However, the method of the present invention can also be applied to other fields of the video stream (e.g. header fields, synchronization words, motion vectors . . . ) which may be of fixed length. Indeed fixed length codes used to encode fixed length fields may be considered as a subset of variable length codes.

[0100] As a consequence a receiver equipped with a decoder according to the present invention may be used for all fields of the video stream. 

1/ Method for decoding Variable Length Codes used to encode data having a predefined type, preferably image or video data, said encoded data consisting in a sequence of codewords belonging to a predefined set of codewords, said method comprising the steps of: building at least one partial decoded codeword sequence comprising at least two decoded codewords; checking if said partial decoded codeword sequence fulfils at least one property intrinsic to said predefined type of data. 2/ Method according to claim 1, wherein said encoded data are transmitted over an air interface in a wireless communication network. 3/ Method according to claim 1, wherein partial decoded codeword sequences are iteratively obtained by adding at each iteration an additional plausible codeword, the number of partial decoded codeword sequences at each iteration being equal to the number of additional plausible codewords which can be decoded, and wherein the method comprises the steps of: computing a metric for each obtained partial decoded codeword sequence; said metric giving an information on the meaningfulness of a sequence of data of said predefined type having a predefined bit length; said property intrinsic to said predefined type of data consisting in keeping only the partial decoded codeword sequence of said predefined bit length, herein called survivor of bit length L, optimising said metric for the next iteration. 4/ Method according to claim 3, further comprising the steps of: determining an information related to the number of pixels coded in said survivor of bit length L; keeping at least one additional partial decoded codeword sequence, having the same bit length as said survivor of bit length L, for which said information related to the number of pixel coded in said partial decoded sequence is lower than said corresponding information for said survivor of bit length L. 5/ Method according to claim 3, further comprising the steps of: computing a likelihood for each bit of said partial decoded codeword sequence kept for next iteration, herein called survivor, as a function of partial decoded codeword sequences having the same bit length as said survivor; generating a soft decoding output as a function of said likelihood. 6/ Method according to claim 1, wherein said data are image or video data, said at least one property intrinsic to image or video data consisting in checking if for a partial decoded codeword sequence having a bit length smaller or equal to the number of pixels per data blocks, noted N, ${{{\sum\limits_{{codewords}\quad \in \quad {{partial}\quad {sequence}}}{run}_{codeword}} + 1} \leq N},$

wherein said parameter “run” is related to the number of pixels coded in a codeword. 7/ Method according to claim 1, wherein said data are image or video data, said at least one property intrinsic to image or video data consisting in checking if for a partial decoded codeword sequence having a bit length smaller than the number of pixels per data blocks, an indicator of the end of block equals 0 and for a partial decoded codeword sequence of bit length equal to the number of pixels per data blocks, an indicator of the end of block equals
 1. 8/ Method according to claims 6, further comprising the step of discarding said partial decoded codeword sequence if said property is not verified. 9/ Receiver for receiving data encoded with a Variable Length Code, said receiver comprising: means for building at least one partial decoded codeword sequence comprising at least two decoded codewords; means for checking if said partial decoded codeword sequence fulfils at least one property intrinsic to said predefined type of data. 